home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / cracking / AhtonsCrackingTutorial.sit.hqx / Ahton's Kracking Text Tools.rsrc / TEXT_140.txt < prev    next >
Text File  |  1997-07-27  |  6KB  |  53 lines

  1.  
  2.  
  3. What is it?
  4.  
  5.  
  6. ResCompare is a programmer‚Äôs utility that compares resource Ô¨Åles. Use it to
  7.  
  8. ‚Ä¢    Ô¨Ånd out what resources you changed while working at home late last night,
  9. ‚Ä¢    Ô¨Ånd out what resources the rest of the team changed in the project you‚Äôre all working on while you were on vacation,
  10. ‚Ä¢    see what resources have changed between versions 1.0 and 1.0.1 of your favorite application,
  11. ‚Ä¢    create a Patch application that will apply changes to applications and other Ô¨Åles, which you can use to distribute upgrades of your software without sending a new copy of the entire application,
  12. ‚Ä¢    or just get a quick list of the resources in any Ô¨Åle.
  13.  
  14.  
  15.  
  16.  
  17. How do I use it?
  18.  
  19.  
  20. ResCompare is easy to use. Just start it up and choose Open‚Ķ from the File menu. Pick a resource Ô¨Åle to look at and ResCompare gives you a list of all the resources within that Ô¨Åle. This list is pretty handy because it‚Äôs sorted by resource type and ID, and it also contains the name and size of each resource. You can print out the entire list, or you can select some resources and copy the formatted list of information to the clipboard.
  21.  
  22. But the real fun starts when you choose the Compare with‚Ķ command ( K) from the File menu. This command lets you open a second resource Ô¨Åle, and it compares each resource in the Ô¨Årst Ô¨Åle (the master Ô¨Åle) with the resource having the same type and ID in the second Ô¨Åle (the update Ô¨Åle).
  23.  
  24. You can open the update Ô¨Åle while the master Ô¨Åle is being read. This generally speeds up the comparison process for larger resource Ô¨Åles. Under System 7, you can drag any resource Ô¨Åle onto ResCompare. (Note: If you can‚Äôt drag Ô¨Åles onto ResCompare, try rebuilding your Desktop by restarting with the option and command keys held down; or, use Mike Engber‚Äôs free Save a BNDL utility.) If the front most window is a resource list that hasn‚Äôt been compared to anything yet, Res-Compare will compare the new Ô¨Åle to it. Otherwise, ResCompare will open the new Ô¨Åle.
  25.  
  26. After comparing, the resources that are identical are removed from the list (it doesn‚Äôt alter the Ô¨Åles). All re-sources that were deleted from the master Ô¨Åle are shown in red, with the ‚Äúdeleted‚Äù icon ( ) on the left margin. Any resources that were added to the update Ô¨Åle are shown in green, and get the ‚Äúadded‚Äù icon ( ). Any resources whose con-tents, attributes or names have changed get the ‚Äúchanged‚Äù icon ( ), and are shown in blue. Here‚Äôs what a window looks like after comparing two resource Ô¨Åles:
  27.  
  28. ( You must get the applacation to see what i mean )
  29.  
  30.  
  31. You can select resources from this list by clicking them. Use the shift key to extend your selection and the command key to form a discontinuous selection. You can also type a resource‚Äôs type and ID to scroll to the closest match and select it. Use Select All ( A) from the Edit menu to select all resources at once.
  32.  
  33. At the top of the window, the names of the master and update Ô¨Åles are shown, along with their version numbers and the names of the volumes they reside on. In the Size column, you can see the ‚Äúbefore/after‚Äù sizes of each resource. The little ‚Äúno‚Äìwrite‚Äù icon ( ) is next to the update Ô¨Åle to remind you that it cannot be changed. However, the master Ô¨Åle doesn‚Äôt have a no‚Äìwrite icon. You can change its resources using the Update com-mand in the Change menu.
  34.  
  35. If you select one or more resources in the list and choose Update ( U), the update is applied to the selected resources. What does that mean? It means that if a resource was added to the update Ô¨Åle, it gets added to the master Ô¨Åle. A resource that was deleted gets deleted from the master Ô¨Åle. A changed resource is copied from the update Ô¨Åle to the master Ô¨Åle, along with its attributes and resource name. In other words, the selected resources are changed in the master Ô¨Åle so that they are identical to the update Ô¨Åle. After updating, ResCompare removes the selected resources from the list (since they‚Äôre now identical).
  36.  
  37. If you click the   icon, ResCompare swaps the master and update Ô¨Åles. This is useful if you want to get some changed resources into your master Ô¨Åle, and also put some resources you‚Äôve changed into the update Ô¨Åle.
  38.  
  39. You can also use the Font and Size menus in the usual manner to adjust the font used. You should probably switch to Helvetica before printing to a LaserWriter.
  40.  
  41. Editing Resources
  42.  
  43. Select one or more resources and choose Edit resources ( E) from the Edit menu. This command opens the master and update resource Ô¨Åles in a resource editor (either ResEdit or Resorceror‚Ñ¢) and displays the selected resources. If the resource editor isn‚Äôt running, ResCompare will launch it. Use the Choose editor‚Ķ command from the Edit menu to select your preferred resource editor. These commands only work under System 7.
  44. Viewing Resource Differences
  45. ResCompare can show you the exact changes to a resource. After comparing Ô¨Åles, select a resource and choose Differences from the Change menu. It may take ResCompare a few moments to compute the resource differences; but when it‚Äôs done, ResCompare will display a window like this.
  46. ( You must get the applacation to see what i mean )
  47.  
  48. The top portion of the window displays any differences found in the resource name and attributes. Differences in the resource contents are displayed in a hexadecimal format. Identical, inserted, deleted, and changed sections are shown in their respective colors. If you aren‚Äôt using a color monitor, you can refer to the byte offsets listed in the two left‚Äìhand columns. The left column is the offset within the master Ô¨Åle, and the right column is the offset within the update Ô¨Åle. A section has been deleted if it has no update offset, and it has been added if it has no master offset. If the section has both offsets, it has been changed if the hex dump is split into two sections. Otherwise, the section is identical in both Ô¨Åles. The same information is also displayed in an ASCII dump in the right‚Äìhand column.
  49.  
  50. ResCompare will also show differences if you double‚Äìclick a resource or select a resource and press return. You can use the Change menu‚Äôs Hide same parts command to suppress the display of the identical (black) parts. You can also select any portion of the differences and copy it to the clipboard as text.
  51. This Program is a must if u want to start Kracking.
  52. Need i say more?
  53.